home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmDummy
- Caption = "Form2"
- ClientHeight = 585
- ClientLeft = 2415
- ClientTop = 10845
- ClientWidth = 7365
- ControlBox = 0 'False
- Height = 1275
- KeyPreview = -1 'True
- Left = 2355
- LinkTopic = "Form2"
- ScaleHeight = 585
- ScaleWidth = 7365
- Top = 10215
- Width = 7485
- Begin Menu mnuSystemMenu
- Begin Menu mnu_Move
- Caption = "&Move"
- End
- Begin Menu mnu_Close
- Caption = "&Close Alt+F4"
- End
- End
- Dim Focus As Integer
- Sub mnu_Close_Click ()
- Unload frmMain
- End Sub
- Sub mnu_Move_Click ()
- Mousepointer = 5
- Dim mpos As POINTAPI
- Dim p As ConvertPOINTAPI
- Dim ret As Integer
- Call GetCursorPos(mpos) ' Get the current position of the cursor
- LSet p = mpos ' and convert it for SendMessage calls.
- ret = Sendmessage(frmMain.hWnd, WM_LBUTTONUP, 0, p.xy)
- ret = Sendmessage(frmMain.hWnd, WM_SYSCOMMAND, MOUSE_MOVE, p.xy)
- End Sub
- Sub mnuSystemMenu_Click ()
- Focus = True
- frmMain!Timer1.Interval = 10
- End Sub
-